package com.dragon.mmochat.message;

import com.dragon.mmochat.MmochatConstant;
import com.skymobi.buffer.SkymobiBuffer;
import com.skymobi.message.SkymobiProtocolMessage;

public class Mmochat_1_4C extends SkymobiProtocolMessage {
	int hallState;
	int sexual;
	int party;
	String name;
	String suggestName;
	String imei;

	public Mmochat_1_4C() {
		setMsgCode(MmochatConstant.MSGCODE_MMOCHAT_C_1_4);
	}

	@Override
	protected void decodeBody(SkymobiBuffer in) {
		hallState = in.getShort();
		sexual = in.get();
		party = in.get();
		name = in.getPrefixedString(2);
		suggestName = in.getPrefixedString(2);
		imei = "";
		for (int i = 0; i < 15; i++) {
			imei += (in.getUnsigned() - '0') + "";
		}
	}

	public int getHallState() {
		return hallState;
	}

	public String getName() {
		return name;
	}

	public int getSexual() {
		return sexual;
	}

	public int getParty() {
		return party;
	}

	public String getSuggestName() {
		return suggestName;
	}

	public String getImei() {
		return imei;
	}

}